export interface QueryPage<T> {
  list: T[];
  pagenation: {
    page: number;
    pageSize: number;
    total: number;
  };
}

export interface NavItem {
  id: string;
  name: string;
  level: number;
  top: number;
}

export interface Blog{
  id?: number;
  title: string;
  desc: string;
  text: string;
  views?: number;
  goods?: number;
  tags: string;
  createTime?: string;
  updateTime?: string;
  user?: User;
}

export interface Artical {
  id?: number;
  uid?: number;
  createTime?: string;
  updateTime?: string;
  title?: string;
  desc?: string;
  url?: string;
  views?: number;
  goods?: number;
  tags?: string;
  user?: User;
}
export interface User {
  id: number;
  name: string;
  avatar: string;
  phone: string;
  password: string;
  userLevel: number;
  wx_openId: string;
  isDelete: number;
  createTime: string;
  updateTime: string;
  describe?: string;
}

export interface QueryPage<T> {
  list: T[];
  pagenation: {
    page: number;
    pageSize: number;
    total: number;
  };
}

export interface HotArtical {
  id: number;
  title: string;
  views: number;
  goods: number;
  createTime: string;
  updateTime: string;
}

export interface RecentArtical extends HotArtical {}
